package com.cygsunri.parkingsuff.feign;

import com.cygsunri.commonutils.response.ResultWrapper;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author hanyuanLiu
 * @site USER_M
 * @company 中才实用
 * @create 2021-03-22 16:55
 */
@Component
@FeignClient(name = "parking-warn") //从哪个服务中调用功能 ，名称与被调用的服务名保持一致
public interface WarnFeignService {

    @GetMapping("/warn/tempTwo/listTest")//用于对被调用的微服务进行地址映射
    public ResultWrapper<Object> listTest();
}


